package com.ktkj.init.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel
@Data
public class LoginForm {

    @NotBlank(message = "用户名不能为空！")
    @Length(min = 0, max = 255, message = "用户名不能大于255个字符！")
    @ApiModelProperty(value = "用户名", example = "admin")
    private String userName;

    @NotBlank(message = "密码不能为空！")
    @Length(min = 0, max = 255, message = "密码不能大于255个字符！")
    @ApiModelProperty(value = "密码", example = "123456")
    private String password;
}
